package ua.com.fesvlast.hotel.tests.utils;

import static org.junit.Assert.*;


import org.junit.Before;
import org.junit.Test;

import ua.com.fesvlast.hotel.model.utils.DateFormatter;

public class DateTests {
	String arrival=null;
	String departure=null;
	@Before
	public void init() {
		 arrival ="2014-08-01 11:00:00";
		 departure="2014-08-23 11:00:00";
	}
	

	@Test
	public void countTimeBetweenDatesTest(){
		long result =DateFormatter.countTimeBetweenDatesInDays(arrival, departure);
		assertEquals("Time between two dates are different with the actual result!", 22, result);	
		
	}

}
